package cc.lishixi.app001;

import org.apache.pivot.collections.Map;
import org.apache.pivot.wtk.Application;
import org.apache.pivot.wtk.DesktopApplicationContext;
import org.apache.pivot.wtk.Display;

public class App implements Application {
    private MyWindow win;

    public static void main(String[] args) {
        DesktopApplicationContext.main(App.class, args);
    }

    @Override
    public void startup(Display display, Map<String, String> map) {
        win = new MyWindow();
        win.setTitle("Demo FileBrowser");
        win.setMaximized(true);
        win.open(display);
    }

    @Override
    public boolean shutdown(boolean b) {
        if (win != null) {
            System.out.println("shutdown..");
            win.close();

        }
        return false;
    }

    @Override
    public void suspend() {

    }

    @Override
    public void resume() {

    }
}
